from kunlun import lib


def main():
    at = lib.get_configuration()
    stn = at.add_station(name="ICP", desc="This is ICP station", recycle=False, dense=False)
    for i in range(1, 2):
        ctn = stn.add_container(name="DUT" + f"{i:02}")
        ctn.add_sequence("demo.icp")
        ctn.show_event_panel()
        ctn.add_connection(name="REF", protocol="DUMMY")
    #
    stn = at.add_station(name="FCT", desc="FCT Parallel Test", image="demo/bee.jpg", recycle=False, dense=True)
    stn.add_sequence("demo.fct")
    for i in range(1, 3):
        ctn = stn.add_container(name="DUT" + f"{i:02}")
        ctn.show_event_panel()
        ctn.add_connection(name="REF", protocol="DUMMY")
        ctn.add_connection(name="MCU", protocol="DUMMY")
        ctn.show_step_panel()
    #
    stn = at.add_station(name="BURN", desc="老化测试", image="demo/huawei.jpg", dense=True)
    stn.add_sequence("demo.burn")
    ctn = stn.add_container(name="START")
    ctn.show_event_panel()
    ctn = stn.add_container(name="STOP")
    ctn = stn.add_container(name="DEPOSIT")
    ctn = stn.add_container(name="NOUSE", starticon=False)
    for i in range(1, 4):
        ctn = stn.add_container(name="DUT" + f"{i:02}", starticon=False)
        ctn.add_connection(name="REF", protocol="DUMMY")
        ctn.show_measure_panel()
    #
    stn = at.add_station(name="EOL", desc="This is a station", recycle=True, dense=False)
    stn.add_sequence("demo.eol")
    ctn = stn.add_container(name="DUT01")
    ctn.show_event_panel()
    ctn.add_connection(name="REF", protocol="DUMMY")
